package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyQueryObject;

import java.util.List;

//大攻略mapper
public interface StrategyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Strategy record);

    Strategy selectByPrimaryKey(Long id);

    List<Strategy> selectAll();

    int updateByPrimaryKey(Strategy record);

    /**
     * 分页及高查
     * @param qo
     * @return
     */
    List<Strategy> selectForList(QueryObject qo);

    /**
     *  搜索大攻略
     * @param qo
     * @return
     */
    List<Strategy> selectList(StrategyQueryObject qo);
}